/*
 * @Author: 田斌 tianbin0912@163.com
 * @Date: 2023-08-15 13:15:23
 * @LastEditors: 田斌 tianbin0912@163.com
 * @LastEditTime: 2023-08-15 13:15:27
 * @FilePath: \jQueryProject\webComponents\templatesAndSlots\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
customElements.define(
  "my-paragraph",
  class extends HTMLElement {
    constructor() {
      super();
      let template = document.getElementById("my-paragraph");
      let templateContent = template.content;

      const shadowRoot = this.attachShadow({ mode: "open" });
      shadowRoot.appendChild(templateContent.cloneNode(true));
    }
  },
);